Skip to content

Replace #pragma omp atomic with GCC/clang builtins - #3681

Merged
davidrohr merged 2 commits into
AliceO2Group:devfrom
davidrohr:dev_pull_request
Jun 1, 2020
Merged

Replace #pragma omp atomic with GCC/clang builtins#3681
davidrohr merged 2 commits into
AliceO2Group:devfrom
davidrohr:dev_pull_request

Conversation

@davidrohr

Copy link
Copy Markdown
Collaborator

OpenMP atomics with capture are poorly supported in compilers and it seems in particular CAS is not always compiled correctly. Instead, we just use the GCC/clang builtins which map directly to the x86 atomic CPU instructions.

@davidrohr
davidrohr merged commit b56a533 into AliceO2Group:dev Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant